package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * @author zp
 * @program tensuqare
 * @description
 * @create 2019-05-19 16:30
 **/
@SpringBootApplication
public class BaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class);
    }


    @Bean
    public IdWorker idWorker() {
        return new IdWorker(1, 1);
    }
}
